<?php
	require_once "./init.inc.php";
	require_once "./inc/dbconn.php";

	$sql = "select * from goodlist order by id";

	$result = $conn->query($sql);	
	if ($result->num_rows > 0 ){
		while ($row = $result->fetch_assoc()){
			$data[] = $row;
		}
	}

	$smarty->assign('data',$data);
	$smarty->display("select.tpl");
?>